export default {
	getHotKeysData(store, json){
		return new Promise((resolve, reject) => {
			store.dispatch("requestData", {
				path:"/search/hotkeys",
				data:json
			}).then(res => {
				resolve(res)
			}).catch(err =>{
				reject(err)
			})
		})
	},
	getSearchResultData(store, json){
		return new Promise((resolve, reject) => {
			store.dispatch("requestData", {
				path:"/search/result",
				data:json
			}).then(res => {
				resolve(res)
			}).catch(err =>{
				reject(err)
			})
		})
	}
}